package com.hk.commons.converters;

import com.hk.commons.util.date.DateTimeUtils;

import java.util.Calendar;


/**
 * @author Kevin
 */
public class StringToCalendarConverter extends StringGenericConverter<Calendar> {

    public StringToCalendarConverter() {
        super(Calendar.class);
    }

    @Override
    protected Calendar doConvert(String source) {
        return DateTimeUtils.dateToCalendar(DateTimeUtils.stringToDate(source));
    }

}
